package yuandaima;
public class Application {
 public static void main(String[] args) {
     Simulator simulator = new Simulator();
     simulator.playSound(new Dog("1"));
     simulator.playSound(new Cat("2"));
 }
}